import { Bk_Product_Info } from 'src/product_info/product_info.entity';
import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from 'typeorm';

@Entity()
export class Bk_File_Manage {
    @PrimaryGeneratedColumn()
    id: number;

    @Column()
    file_name: string;

    @Column({ select: false })
    file_path: string;

    @Column()
    file_size: string;

    @Column()
    file_duration: string;

    @Column()
    file_type: string;

    @Column()
    file_preview_picture: string;

    @Column()
    file_width: number;

    @Column()
    file_height: number;

    @OneToMany(() => Bk_Product_Info, product_info => product_info.video)
    product_info: Bk_Product_Info[];
}